mm: fix emfn calculation in init_domheap_pages()
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Mon, 16 Apr 2018 12:11:09 +0000 (14:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Apr 2018 12:11:09 +0000 (14:11 +0200)
commit87c0718ce7f0fe80065c8f54d99774e0741780f2
treeb838ec1f57b4f43c303e8a9a4681a9ea7525df1e
parentbb502a8ca59252dfd5a7170cc59321b59ac8c2b7
mm: fix emfn calculation in init_domheap_pages()

The "end" address must be rounded down before shifting,
otherwise we will insert wrong page range to a heap if address isn't
page aligned.

It seems that a copy-paste mistake took place in the following commit:
0c12972e34b20a26f2b42044b98bf12db7ed62b6
xen/mm: Switch some of page_alloc.c to typesafe MFN

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/common/page_alloc.c